package com.cseg674.dataentry.javaparser;
/*
 * RdfVariable.java
 *
 * Created on February 26, 2008, 12:38 PM
 *
 */

/**
 *
 * @author Tian, Juan
 */

 /**
  * RdfVariable provides the level of variable in the RDF output.
  */

public class RdfVariable extends RdfTreeNode{

    /**
	 * Contains the level of variables
	 */
    private int level;

    /**
	 * Default Constructor: Creates a new instance of RdfVariable
     */
    public RdfVariable() {
        this(null, null, 0);
    }

    /**
   	 * Constructor: Creates a new instance of RdfVariable
   	 *
   	 *  @param name	the name of the Variable
   	 *  @param type	the type of the Variable
     */
    public RdfVariable(String name, String type){
        this(name, type, 0);
    }

    /**
	 * Constructor: Creates a new instance of RdfNestInterface
	 *
	 * @param name		the name of the Nested Interface
	 * @param type		the type of the Nested Interface
	 * @param level		the level of the Nested Interface
     */
    public RdfVariable(String name, String type, int level) {
        super(name, type);
        this.level = level;
    }

    /**
	 * gets the level of the variable
	 *
	 * @return	the level of the variable
     */
    public int getLevel() {
        return level;
    }

    /**
	 * sets the level of the variable
	 *
	 * @param level	the level of the variable to be set
	 */
    public void setLevel(int level) {
        this.level=level;
    }


}
